import * as Types from './actionTypes'
import { Commit } from 'vuex'
import { ITodo } from '../typings'
interface ICtx {
  commit: Commit
}
export default {
  [Types.SET_TODO]({ commit }: ICtx, todo: ITodo): void {
    commit('SET_TODO', todo)
  },
  [Types.SET_TODO_LIST]({ commit }: ICtx, todoList: ITodo[]): void {
    commit('SET_TODO_LIST', todoList)
  },
}
